package com.fxp.project.jiuselu.web.file.domain.controller;
import com.fxp.project.jiuselu.web.file.domain.FileUtil;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile;


@RestController
@RequestMapping("/v1/file")
public class TecentCos4PictureController {

    @PostMapping("/getUrl")
    @CrossOrigin
    public String getUrl(MultipartFile file){
        return FileUtil.createFile(file);
    }

}
